package demo;

import java.util.Scanner;

public class Stringbuilder {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String str=sc.next();
        //链式
        String result=new StringBuilder(str).reverse().toString();


        System.out.println(result);
    }
}
